package com.share.device.controller;

import com.share.common.core.web.controller.BaseController;
import com.share.common.core.web.page.TableDataInfo;
import com.share.device.domain.PowerBank;
import com.share.device.service.IPowerBankService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "充电宝接口管理")
@RestController
@RequestMapping("/powerBank")
public class PowerBankController extends BaseController {
    @Autowired
    private IPowerBankService powerBankService;

    // 进行分页查询充电宝
    @GetMapping("/list")
    @Operation(summary = "分页查询充电宝")
    public TableDataInfo list(PowerBank powerBank){
        startPage();
        powerBankService.selectPowerBankList(powerBank);
    }

}
